//
//  DateFormatter.m
//  iStock Global
//
//  Created by Andy on 2010/10/14.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "DateFormatter.h"

@implementation NSDateFormatter (yahooCSVDateFormatter)

+(NSDateFormatter *)yahooCSVDateFormatter
{
    static NSDateFormatter *df = nil;
    if (!df) {
        df = [[NSDateFormatter alloc] init];
        [df setDateFormat:@"yyyy-MM-dd"];
    }
    return df;
}
+(NSDateFormatter *)xxtradexxDateFormatter
{
    static NSDateFormatter *df = nil;
    if (!df) {
        df = [[NSDateFormatter alloc] init];
        [df setDateFormat:@"yyyyMMdd"];
    }
    return df;
}
+(NSDateFormatter *)yahooDailyDateFormatter
{
    static NSDateFormatter *df = nil;
    if (!df) {
        df = [[NSDateFormatter alloc] init];
        [df setDateFormat:@"MM/dd/yyyy"];
    }
    return df;
}

@end